<!-- <template>
  <div>优惠券</div>
</template>

<script lang="ts">
export default {};
</script>

<style lang="less" scoped></style> -->

<template>
  <!-- <p>优惠券跳转页</p> -->
  <div class="common-layout">
    <el-container>
      <!-- <el-aside width="200px">Aside</el-aside> -->
      <el-main>
        <p>
          <label for="">优惠券编号</label>
          <input type="text" />
        </p>
        <p>
          <label for="">优惠期商品</label>

          <input type="text" />
        </p>
        <p>
          <label for="">优惠券</label>
          <input type="text" />
        </p>
        <p>
          <label for="">活动开始时间</label>

          <input type="text" />
        </p>
        <p>
          <label for="">活动结束时间</label>
          <input type="text" />
        </p>
        <p>
          <label for="">优惠券金额</label>
          <input type="text" />
        </p>
        <p>
          <label for="">优惠券门槛</label>
          <input type="text" />
        </p>
        <p>
          <label for="">现价</label>
          <input type="text" />
        </p>
        <p>
          <label for="">优惠价格</label>
          <input type="text" />
        </p>
        <p>
          <label for="">数量</label>
          <input type="text" />
        </p>

        <el-row class="mb-4">
          <el-button class="BUTTON" type="primary">确定</el-button>
          <el-button class="BUTTON" type="success" @click="handelGo">
            取消
          </el-button>
        </el-row>
      </el-main>
    </el-container>
  </div>
</template>
<script lang="ts">
import { useRouter } from 'vue-router'
export default {
  setup() {
    const router = useRouter()
    const handelGo = () => {
      router.go(-1)
    }
    return {
      handelGo,
    }
  },
}
</script>
<style lang="less" scope>
.mb-4 {
  display: flex;
  justify-content: center;
  text-align: center;
  .BUTTON {
    width: 70px;
    height: 30px;
    background: #5f4e72;
    border-radius: 4px;
    margin-top: 10px;
  }
}
.common-layout {
  p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 7px 0;
    label {
      height: 16px;
      display: inline-block;
      width: 110px;
      text-align: right;
      font-size: 15px;
      color: #666666;
      line-height: 18px;
    }
    input {
      text-indent: 10px;
      width: 400px;
      height: 34px;
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid #fafafa;
      margin-left: 30px;
    }
  }
}
</style>
